package com.dataart.productshop.file;

import org.springframework.web.multipart.commons.CommonsMultipartFile;

public class UploadFileItem {
	private String name;
	private String description;
	private String type;
	private CommonsMultipartFile fileData;
	private CommonsMultipartFile [] pictureFiles;
    private boolean validateFile;
	
	public UploadFileItem() {
		this.pictureFiles = new CommonsMultipartFile[2];
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public CommonsMultipartFile getFileData() {
		return fileData;
	}

	public void setFileData(CommonsMultipartFile fileData) {
		this.fileData = fileData;
	}

	public CommonsMultipartFile[] getPictureFiles() {
		return pictureFiles;
	}

	public void setPictureFiles(CommonsMultipartFile [] pictureFiles) {
		this.pictureFiles = pictureFiles;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

    public boolean isValidateFile() {
        return validateFile;
    }

    public void setValidateFile(boolean validateFile) {
        this.validateFile = validateFile;
    }
}